<?php 
$title = $title ? $title : '信息提示'; 

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<base href="<?php echo SITE_ADDR;?>"></base> 
<!--基础文件，分别是jQuery基库和拖拽UI插件-->
    <script src="/public/js/jquery/jquery.js" type="text/javascript"></script>
    <script src="/public/js/jquery/asyncbox/asyncbox.v1.5.beta.min.js" type="text/javascript" runat="server"></script>
    <script src="/public/js/jquery/asyncbox/asyncbox_plugin.js" type="text/javascript"></script>
    <link href="/public/js/jquery/asyncbox/skins/default.css" rel="stylesheet" type="text/css">
    
<!-- 对话框核心JS文件和对应的CSS文件-->
<style type="text/css">
html, body {
	height:100%;
	margin:0;
	padding:0;
	}
p {
	font-size:22px;
	font-weight:bold;
	color:#333333;
	line-height:36px;
	}
a {
	font-size:12px;
	font-weight:normal;
	color:#00A7DB;
	display:inline-block;
	text-decoration:none;
	}
a:hover {
	text-decoration:underline;
	}
/* S Btn-common&Btn-common-no */
.button-common {
	margin:12px 6px 0 6px;
	display: inline-block;
	background-image: url(/public/images/user/button-bk.png);
	width: 112px;
	height: 31px;
	box-shadow: 0px 1px 2px 0px rgba( 0, 0, 0, 0.25);
	border-radius: 5px;
	line-height: 31px;
	text-align: center;
	color: #595959;
	text-shadow: 0px 1px 1px rgba( 255, 255, 255, 0.65);
	}
	.button-common:hover {
		background-image: url(/public/images/user/button-bk-hover.png);
		color: #333;
		}
	.button-common:active {
		background-image: url(/public/images/user/button-bk-active.png);
		color: #000;
		text-shadow: 0px 1px 1px rgba( 255, 255, 255, 1.0);
		box-shadow: none;
		}
.button-common-no {
	display: inline-block;
	background-image: url(/public/images/user/button-bk-no.png);
	width: 112px;
	height: 31px;
	box-shadow: 0px 1px 2px 0px rgba( 0, 0, 0, 0.25);
	border-radius: 5px;
	line-height: 31px;
	text-align: center;
	color: #595959;
	text-shadow: 0px 1px 1px rgba( 255, 255, 255, 0.65);
	cursor: default;
	}


/* E Btn-common&Btn-common-no */
</style>
<?php
if($type=='page'){
	if($model){
		$img = "success";
	}else{
		$img = "error";
	}	
?>

<!--S 跳转-->
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" valign="middle"><img src="../public/images/user/jump-<?php echo $img; ?>.jpg" /><p><?php echo $msg; ?></p></td>
  </tr>
</table>

<!--E 跳转-->
<script type="text/javascript">

my_page('<?php echo $model; ?>','<?php echo $url; ?>','<?php echo $target; ?>','<?php echo $time; ?>')
</script>
<?php
exit;	
}
?>

<script type="text/javascript">
$(function(){
<?php 
	switch($type){
		case "alert":
		case "error":
		case "success":
		case "warning":
		?>
		    my_jump('<?php echo $msg; ?>','<?php echo $title; ?>' ,'<?php echo $url; ?>',<?php echo $time; ?>,'<?php echo $target; ?>','<?php echo $type; ?>');
		<?php
		break;
		
		case "close":
		?>	
		   my_close();
		<?php
		break;
		case "reload_top":
		?>	
			top.location.reload();
		   	my_close();
		   
		<?php
		break;
		default:
		?>
		    my_jump('<?php echo $msg; ?>','<?php echo $title; ?>' ,'<?php echo $url; ?>',<?php echo $time; ?>,'<?php echo $target; ?>','<?php echo 'alert'; ?>');
		<?php
		break;
		
	}
?>


});
</script>
</head>
<body bgcolor="#cccccc">

</body>
</html>
<?php exit;?>